﻿function DoView() {
    var pagenumber = $("#PageNumber").val();
    if (IsEmpty($("#FromDate").val())) {
        document.getElementById("msg-FormDate").innerHTML = "Chọn ngay muốn xem !";
        $("#FormDate").focus();
        return;
    }
    var ngayduocchon = $("#FromDate").val();
    window.location.href = basePath + 'ChamCong/ThoiKhoaBieuChamCong/' + pagenumber + "?NgayHienHanh="+ngayduocchon;
}

function ChamCongNgayHomNay(ngayduocchon) {
    var arr = ngayduocchon.split('/');
    window.location.href = basePath + 'ChamCong/ChamCongHomNay?ngay=' + arr[0] + '&thang=' + arr[1] + '&nam='+arr[2];
}
